<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<spring:url value="/resources" var="resurl" />
<link rel="stylesheet" href="${resurl}/common.css" type="text/css" />

<title>Sites</title>
</head>
<body>

	<h1>Sites</h1>

	<div class="listing">
		<spring:url value="/admin/sites" var="sitesUrl" />
		<c:forEach items="${siteList}" var="s">
			<div><a href="${sitesUrl}/${s.id}/hosts">${s.name}</a></div>
		</c:forEach>
	</div>

	<div>
		<a href="sites/add">Add Site</a>
	</div>
</body>
</html>
